//
//  TTHomeActivityViewCell.m
//  TaoTuo
//
//  Created by LG on 2020/10/17.
//  Copyright © 2020 刘广. All rights reserved.
//

#import "TTHomeActivityViewCell.h"

@interface TTHomeActivityViewCell ()

@property (nonatomic, strong) UIImageView *imageView;

@end

@implementation TTHomeActivityViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        _imageView = [[UIImageView alloc] initWithFrame:self.bounds];
        _imageView.contentMode = UIViewContentModeScaleAspectFit;
        _imageView.layer.cornerRadius = 10;
        _imageView.layer.masksToBounds = YES;
        [self.contentView addSubview:_imageView];
        
        
    }
    return self;
}

- (void)setUrlStr:(NSString *)urlStr
{
    _urlStr = urlStr;
    
    [self.imageView sd_setImageWithURL:[NSURL URLWithString:urlStr] placeholderImage:nil options:SDWebImageRetryFailed];
}


@end
